package com.yiqi.liebang.entity.enums;

public enum AuthenticationType {
    IMAGE_IDCARD("身份证图片", 0),
    IMAGE_DEGREE("学位证明图片", 1),
    IMAGE_DIPLOMA("毕业证证明图片", 2),
    IMAGE_VISITING("名片证明图片", 3),
    IMAGE_CERTIFICATE("在职证明图片", 4),
    IMAGE_LICENSE("营业执照证明图片", 5),
    IMAGE_WORKCARD("工牌证明图片）", 6);

    // 成员变量
    private String name;
    private int index;

    // 构造方法
    private AuthenticationType(String name, int index) {
        this.name = name;
        this.index = index;
    }

    // 普通方法
    public static String getName(int index) {
        for (AuthenticationType c : AuthenticationType.values()) {
            if (c.getIndex() == index) {
                return c.name;
            }
        }
        return null;
    }

    // get set 方法
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }
}
